﻿
@model orienta.ViewModels.Solicitud
@{
    Layout = "";
}
<table cellpadding="0" border="0" cellspacing="0" width="100%">
    <tbody>
        <tr>
            <td>
                <table cellpadding="0" border="0" cellspacing="0" width="100%">
                    <tbody>
                        <tr>
                            <td>
                                <table class="tablaTitulo_MIDIS" style="width: 150PX;" cellpadding="2" cellspacing="0"
                                    border="0">
                                    <tbody>
                                        <tr>
                                            <td align="center">
                                                <div id="derivar" class="divTitulo_MIDIS" style="width: 150PX;">
                                                    <span style="background-color: #b50055; color: white;">[DATOS ADICIONALES]</span>
                                                </div>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>


                                                                                                                                        <tr>
                                                                                                                    <td>
                                                                                                                        <table class="tablaInterna_MIDIS" cellpadding="2" cellspacing="0" border="0"  width="90%" >
                                                                                                                            <tr align="left">
                                                                                                                                <td>De</td>
                                                                                                                                <td>:</td>
                                                                                                                                <td align="left">
                                                                                                                                    <table cellpadding="1" cellspacing="0" border="0"  width="90%">
                                                                                                                                        <tr>
                                                                                                                                            <td>Mesa de Parte - Sede Central</td>
                                                                                                                                            <td>
                                                                                                                                                <table  border="0" cellpadding="0" cellspacing="0" >
                                                                                                                                                    <tr>
                                                                                                                                                        <td>Prioridad</td>
                                                                                                                                                        <td>:</td>
                                                                                                                                                        <td>
                                                                                                                                                             @Html.DropDownListFor(m => m.nIdePrioridad, (IEnumerable<SelectListItem>)ViewBag.Prioridad)
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                </table>
                                                                                                                                            </td>
                                                                                                                                        </tr>  
                                                                                                                                    </table>
                                                                                                                                </td>
                                                                                                                                
                                                                                                                            </tr>
                                                                                                                            <tr align="left">
                                                                                                                                <td>Derivado A&nbsp;<span class="letraAsterisco_MIDIS">(*)</span></td>
                                                                                                                                <td>:</td>
                                                                                                                                <td align="left">
                                                                                                                                    <table cellpadding="0" cellspacing="0" border="0">
                                                                                                                                        <tr>
                                                                                                                                            <td>
                                                                                                                                              @Html.TextAreaFor(m => m.sDerivar, new { cols = "80", rows = "2", onkeypress1 = "javascript:ValidaTextarea('nuevo_derivacion','Accion',512)", ondblclick = "javascript:limpiaCajaDobleClick(this,'1');", onpaste1 = "return false" })
                                                                                                                                            </td>
                                                                                                                                            <td>
                                                                                                                                                <table border="0" cellpadding="0" cellspacing="0">
                                                                                                                                                    <tr>
                                                                                                                                                        <td>
                                                                                                                                                            <img src="@Url.Content("~/images/favoritos.png")" class="lupita1_MIDIS" alt="VER CIE10"/>
                                                                                                                                                        </td>
                                                                                                                                                        <td>
                                                                                                                                                            <img src="@Url.Content("~/images/personas.jpg")" class="lupita1_MIDIS" alt="VER CIE10"/>
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                    <tr>
                                                                                                                                                        <td>
                                                                                                                                                            <img src="@Url.Content("~/images/copy.png")" class="lupita1_MIDIS" alt="VER CIE10" onclick="javascript:verCPT();"/>
                                                                                                                                                        </td>
                                                                                                                                                        <td>
                                                                                                                                                            <img src="../images/organigrama.gif" class="lupita1_MIDIS" alt="VER CIE10" onclick="javascript:dependencias('sDerivar')"/>
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                </table>
                                                                                                                                            </td>
                                                                                                                                        </tr>   
                                                                                                                                    </table>
                                                                                                                                </td>
                                                                                                                            </tr>
                                                                                                                            <tr id="trCC" style="display: none;" align="left">
                                                                                                                                <td>Con Copia A</td>
                                                                                                                                <td>:</td>
                                                                                                                                <td>
                                                                                                                                    <table cellpadding="0" cellspacing="0" border="0">
                                                                                                                                        <tr>
                                                                                                                                            <td align="left">
                                                                                                                                            @Html.TextAreaFor(m => m.sDerivarCC, new { cols = "80", rows = "2", onkeypress = "javascript:ValidaTextarea('nuevo_derivacion','Accion',512)", ondblclick = "javascript:limpiaCajaDobleClick(this,'1');", onpaste = "return false" })
                                                                                                                                            </td>
                                                                                                                                            <td>
                                                                                                                                                <table border="0" cellpadding="0" cellspacing="0">
                                                                                                                                                    <tr>
                                                                                                                                                        <td>
                                                                                                                                                            <img src="../images/favoritos.png" class="lupita1_MIDIS" alt="VER CIE10" onclick="javascript:verCPT();"/>
                                                                                                                                                        </td>
                                                                                                                                                        <td>
                                                                                                                                                            <img src="../images/personas.jpg" class="lupita1_MIDIS" alt="VER CIE10" onclick="javascript:verCPT();"/>
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                    <tr>
                                                                                                                                                        <td>
                                                                                                                                                            <img src="../images/organigrama.gif" class="lupita1_MIDIS" alt="VER CIE10" onclick="javascript:dependencias('sDerivarCC')"/>
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                </table>
                                                                                                                                            </td>
                                                                                                                                        </tr>   
                                                                                                                                    </table>
                                                                                                                                </td>
                                                                                                                            </tr>
                                                                                                                             <tr align="left">
                                                                                                                                <td nowrap>Doc. Entrante&nbsp;<span class="letraAsterisco_MIDIS">(*)</span></td>
                                                                                                                                <td>:</td>
                                                                                                                                <td>
                                                                                                                                    <table cellpadding="0" cellspacing="0" border="0" width="95%">
                                                                                                                                        <tr>
                                                                                                                                            <td>
                                                                                                                                                <table border="0" cellpadding="0" cellspacing="0">
                                                                                                                                                    <tr align="center">
                                                                                                                                                        <td colspan="2">Tipo Documento</td>
                                                                                                                                                        <td>N&uacute;mero Documento</td>
                                                                                                                                                        <td colspan="2">Fecha Docum.</td>
                                                                                                                                                    </tr>
                                                                                                                                                    <tr>
                                                                                                                                                         
                                                                                                                                                        <td>
                                                                                                                                                             @Html.TextBoxFor(m => m.sTipoDocEntrante, new { @class = "cajaTextoMayuscula", size = "40" })
                                                                                                                                                             @Html.HiddenFor(m => m.nIdeTipoDocEntrante)
                                                                                                                                                        </td>
                                                                                                                                                        <td>
                                                                                                                                                            <img src="../images/browse.gif" class="lupita1_MIDIS" alt="VER TIPO" tituloCompendio="Tipo de documento" campoLlenar="sTipoDocEntrante" campoHidden="nIdeTipoDocEntrante" onclick="javascript:buscaItenGeneral(this,'21');"/>
                                                                                                                                                        </td>
                                                                                                                                                        <td>
                                                                                                                                                            @Html.TextBoxFor(m => m.sNroDocEntrante, new { @class = "cajaTextoMayuscula", size = "10" })
                                                                                                                                                         </td>
                                                                                                                                                        <td>
                                                                                                                                                            @Html.TextBoxFor(m => m.dtFecDocEntrante, new { @class = "cajaTextoMayuscula", @maxlength = "10", style = "width:60px", onkeyup = "javascript:MiFechaNew(this);", ondblclick = "javascript:limpiaCaja(this)" })
                                                                                                                                                        </td>
                                                                                                                                                        <td>
                                                                                                                                                            <img src="../images/fecha.jpg" alt="MOSTRAR EL ALMANAQUE"    class="lupita1_MIDIS" onclick="javascript:show_calendar(this);"/>
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                </table>
                                                                                                                                            </td>
                                                                                                                                            <td style="width: 10px;">&nbsp;</td>
                                                                                                                                            <td xstyle="width: 160px;">
                                                                                                                                                <table border="0" cellpadding="0" cellspacing="0">
                                                                                                                                                    <tr>
                                                                                                                                                        <td align="center" colspan="2">Plazo</td>
                                                                                                                                                    </tr>
                                                                                                                                                    <tr>
                                                                                                                                                        <td>
                                                                                                                                                            @Html.TextBoxFor(m => m.nPlazo, new { @class = "cajaTextoMayuscula", size = "3" })

                                                                                                                                                        </td>
                                                                                                                                                        <td>
                                                                                                                                                            @Html.DropDownListFor(m => m.nIdePeriodo, (IEnumerable<SelectListItem>)ViewBag.Plazo)
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                </table>
                                                                                                                                            </td>
                                                                                                                                            <td>
                                                                                                                                                <table border="0" cellpadding="0" cellspacing="0">
                                                                                                                                                    <tr>
                                                                                                                                                        <td align="center"># Folios</td>
                                                                                                                                                    </tr>
                                                                                                                                                    <tr>
                                                                                                                                                        <td align="center">
                                                                                                                                                           @Html.TextBoxFor(m => m.nFolios, new { @class = "cajaTextoMayuscula", size = "3" })
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                </table>
                                                                                                                                            </td>
                                                                                                                                            <td>
                                                                                                                                                <table border="0" cellpadding="0" cellspacing="0">
                                                                                                                                                    <tr>
                                                                                                                                                        <td align="center">Confidencial?</td>
                                                                                                                                                    </tr>
                                                                                                                                                    <tr>
                                                                                                                                                        <td align="center">
                                                                                                                                                            <input type="checkbox" id="cpt" name="cpt">
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                </table>
                                                                                                                                            </td>
                                                                                                                                        </tr>
                                                                                                                                    </table>
                                                                                                                                </td>
                                                                                                                             </tr>
                                                                                                                            <tr align="left">
                                                                                                                                <td nowrap>Referencia(s)</td>
                                                                                                                                <td>:</td>
                                                                                                                                <td>
                                                                                                                                    <table id="tblReferencias">
                                                                                                                                    @foreach (var item in Model.referencias)
                                                                                                                                    {
                                                                                                                                    <tr>
                                                                                                                                        
                                                                                                                                        <td>
                                                                                                                                            <table id="tblReferencia" cellpadding="0" cellspacing="0"  style=" border: thin solid" width="100%">
                                                                                                                                        <tr>
                                                                                                                                            <td>
                                                                                                                                                <table cellpadding="2" cellspacing="0" border="0" width="95%">
                                                                                                                                                    <tr align="center">
                                                                                                                                                        <td>Tipo Documento</td>
                                                                                                                                                        <td>N&uacute;mero Docum.</td>
                                                                                                                                                        <td>Fecha Docum.</td>
                                                                                                                                                        <td>Comentario</td>
                                                                                                                                                        <td>&nbsp;</td>
                                                                                                                                                    </tr>
                                                                                                                                                    <tr align="center">
                                                                                                                                                        <td align="left">
                                                                                                                                                            <table border="0" cellpadding="0" cellspacing="0">
                                                                                                                                                                <tr>
                                                                                                                                                                    <td>
                                                                                                                                                                      @Html.TextBox("vTipoDocumento[]", ((orienta.ViewModels.SolicitudReferencia)item).vTipoDocumento, new { @class = "cajaTextoMayuscula", size = "20" })
                                                                                                                                                                      @Html.Hidden("nIdTipoDocumento[]", ((orienta.ViewModels.SolicitudReferencia)item).nIdTipoDocumento)
                                                                                                                                                                    </td>
                                                                                                                                                                    <td>
                                                                                                                                                                     <img src="../images/browse.gif" class="lupita1_MIDIS" alt="VER TIPO" tituloCompendio="Tipo de documento"  onclick="javascript:buscaItenGeneral(this,'21');"/>
                                                                                                                                                                    </td>
                                                                                                                                                                </tr>
                                                                                                                                                            </table>
                                                                                                                                                        </td>
                                                                                                                                                        <td>
                                                                                                                                                            @Html.TextBox("vNroDocumento[]", ((orienta.ViewModels.SolicitudReferencia)item).vNroDocumento, new { @class = "cajaTextoMayuscula", size = "20" })
                                                                                                                                                        </td>
                                                                                                                                                        <td>
                                                                                                                                                            <table cellspacing="0" cellpadding="0">
                                                                                                                                                            <tr>
                                                                                                                                                                <td>@Html.TextBox("dFecha[]", ((orienta.ViewModels.SolicitudReferencia)item).dFecha, new { @class = "cajaTextoMayuscula", size = "8" })
                                                                                                                                                                </td>
                                                                                                                                                                <td><img src="../images/fecha.jpg" alt="MOSTRAR EL ALMANAQUE"    class="lupita1_MIDIS" onclick="javascript:show_calendar(this);"/>
                                                                                                                                                                </td>
                                                                                                                                                            </tr>
                                                                                                                                                            </table>
                                                                                                                                                        </td>
                                                                                                                                                        <td>
                                                                                                                                                            @Html.TextBox("vComentario[]", ((orienta.ViewModels.SolicitudReferencia)item).vComentario, new { @class = "cajaTextoMayuscula", size = "22" })
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                    <tr>
                                                                                                                                                        <td colspan="6">
                                                                                                                                                         <input type="file" class="boton"  style="width: 734px;"  name="adjunto_tramite[]"  onblur="javscript:validaCamposAdicionalesAdjunto(this);"/>   
                                                                                                                                                        </td>
                                                                                                                                                    </tr>
                                                                                                                                                </table>
                                                                                                                                            </td>
                                                                                                                                        </tr>
                                                                                                                                    </table>
                                                                                                                                    </td>
                                                                                                                                     <td>
                                                                                                                                            <table>
                                                                                                                                                <tr>
                                                                                                                                                    <td id="tdMas"><img src="../images/mas.png" alt="AGREGAR REFERENCIA" class="lupita1_MIDIS" onclick="javascript:addReferenciaMV(this,'tblReferencias');"/></td>
                                                                                                                                                    <td id="tdBorrar" style="display: none;"><img src="../images/delete.png" alt="MOSTRAR EL ALMANAQUE"    class="lupita1_MIDIS" onclick="javascript:delReferenciaMV(this,'tblReferencias');"/></td>
                                                                                                                                                </tr>
                                                                                                                                            </table>
                                                                                                                                      </td>
                                                                                                                                    </tr>
                                                                                                                                     }
                                                                                                                                    </table>
                                                                                                                                    
                                                                                                                                 </td>
                                                                                                                            </tr>
                                                                                                                             
                                                                                                                        </table>
                                                                                                                    </td>
                                                                                                                </tr>


                        <tr>
                            <td>
                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                    <tbody>
                                        <tr align="left">
                                            <td>
                                                <table class="tablaPrincipal_MIDIS" cellpadding="2" cellspacing="0" border="0" width="90%">
                                                    <tbody>
                                                        <tr>
                                                            <td colspan="3">
                                                                <table cellpadding="0" cellspacing="0" border="0">
                                                                    <tbody>
                                                                        <tr>
                                                                            <td>
                                                                                Derivar
                                                                            </td>
                                                                            <td>
                                                                                <input type="radio" id="idAccion" name="idAccion" checked="" value="1">
                                                                            </td>
                                                                            <td style="width: 50px;">
                                                                                &nbsp;
                                                                            </td>
                                                                            <td>
                                                                                Registrar acción
                                                                            </td>
                                                                            <td>
                                                                                <input type="radio" id="idAccion" name="idAccion" value="2">
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                De
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <table cellpadding="1" cellspacing="0" border="0" width="90%">
                                                                    <tbody>
                                                                        <tr>
                                                                            <td>
                                                                                Mesa de Parte - Sede Central
                                                                            </td>
                                                                            <td>
                                                                                <table border="0" cellpadding="0" cellspacing="0">
                                                                                    <tbody>
                                                                                        <tr>
                                                                                            <td>
                                                                                                Para
                                                                                            </td>
                                                                                            <td>
                                                                                                :
                                                                                            </td>
                                                                                            <td>
                                                                                                <select data-val="true" data-val-number="The field nIdePara must be a number." data-val-required="El campo nIdePara es obligatorio." id="nIdePara" name="nIdePara" class="valid">
                                                                                                    <option value="75">ARCHIVO FINAL</option>
                                                                                                    <option value="76">ARCHIVO TEMPORAL</option>
                                                                                                 </select>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </tbody>
                                                                                </table>
                                                                            </td>
                                                                            <td>
                                                                                <table border="0" cellpadding="0" cellspacing="0">
                                                                                    <tbody>
                                                                                        <tr>
                                                                                            <td>
                                                                                                Prioridad
                                                                                            </td>
                                                                                            <td>
                                                                                                :
                                                                                            </td>
                                                                                            <td>
                                                                                                <select data-val="true" data-val-number="The field nIdePrioridad must be a number." data-val-required="El campo nIdePrioridad es obligatorio." id="nIdePrioridad" name="nIdePrioridad" class="valid"><option value="77">ALTA</option>
                                                                                                    <option value="78">MEDIA</option>
                                                                                                    <option value="79">BAJA</option>
                                                                                                </select>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </tbody>
                                                                                </table>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr align="left">
                                                            <td>
                                                                Derivado A&nbsp;<span class="letraAsterisco_MIDIS">(*)</span>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td align="left">
                                                                <table cellpadding="0" cellspacing="0" border="0">
                                                                    <tbody>
                                                                        <tr>
                                                                            <td>
                                                                                <textarea class="cajaTextoMayuscula" name="sDerivar" id="sDerivar" cols="100" rows="3"
                                                                                    onkeypress="javascript:ValidaTextarea('nuevo_derivacion','sumilla',512)" ondblclick="javascript:limpiaCajaDobleClick(this,'1');"
                                                                                    onpaste="return false"></textarea>
                                                                            </td>
                                                                            <td>
                                                                                <table border="0" cellpadding="0" cellspacing="0">
                                                                                    <tbody>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <img src="images/browse.gif" class="lupita1_MIDIS" alt="VER CIE10" onclick="javascript:verCPT();">
                                                                                            </td>
                                                                                            <td>
                                                                                                <img src="images/personas.jpg" class="lupita1_MIDIS" alt="VER CIE10" onclick="javascript:verCPT();">
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <img src="images/copy.png" class="lupita1_MIDIS" alt="VER CIE10" onclick="javascript:verCPT();">
                                                                                            </td>
                                                                                            <td>
                                                                                                <img src="../images/organigrama.gif" class="lupita1_MIDIS" alt="VER CIE10" onclick="javascript:dependencias('sDerivar')">
                                                                                            </td>
                                                                                        </tr>
                                                                                    </tbody>
                                                                                </table>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr id="trCC" style="display: none;" align="left">
                                                            <td>
                                                                Con Copia A
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" border="0">
                                                                    <tbody>
                                                                        <tr>
                                                                            <td align="left">
                                                                                <textarea class="cajaTextoMayusculauscula" name="sumilla[]" id="sumilla" cols="115"
                                                                                    rows="3" onkeypress="javascript:ValidaTextarea('nuevo_derivacion','sumilla',512)"
                                                                                    ondblclick="javascript:limpiaCajaDobleClick(this,'1');" onpaste="return false"></textarea>
                                                                            </td>
                                                                            <td>
                                                                                <table border="0" cellpadding="0" cellspacing="0">
                                                                                    <tbody>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <img src="images/favoritos.png" class="lupita1_MIDIS" alt="VER CIE10" onclick="javascript:verCPT();">
                                                                                            </td>
                                                                                            <td>
                                                                                                <img src="images/personas.jpg" class="lupita1_MIDIS" alt="VER CIE10" onclick="javascript:verCPT();">
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <img src="images/organigrama.gif" class="lupita1_MIDIS" alt="VER CIE10" onclick="javascript:verCPT();">
                                                                                            </td>
                                                                                        </tr>
                                                                                    </tbody>
                                                                                </table>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr align="left">
                                                            <td nowrap="">
                                                                Doc. Entrante&nbsp;<span class="letraAsterisco_MIDIS">(*)</span>
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" border="0" width="95%">
                                                                    <tbody>
                                                                        <tr>
                                                                            <td>
                                                                                <table border="0" cellpadding="0" cellspacing="0">
                                                                                    <tbody>
                                                                                        <tr align="center">
                                                                                            <td colspan="2">
                                                                                                Tipo Documento
                                                                                            </td>
                                                                                            <td>
                                                                                                Número Documento
                                                                                            </td>
                                                                                            <td colspan="2">
                                                                                                Fecha Docum.
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <input type="text" style="font-size:8pt;border-style: solid;border-color:#3E65AD;BORDER-BOTTOM-WIDTH: 1px;border-top-width:1px;border-right-width:1px;border-left-width:1px;width: 200px;text-transform:uppercase;" id="cpt" name="cpt" autocomplete="OFF" num_records="1" datasrc="tipotramite" maxlength="550" xclass="wickEnabledAuto" ondblclick="javascript:limpiaCajaDobleClick(this,'1');" onkeypress="javascript:ValidaCaracteres();">
                                                                                            </td>
                                                                                            <td>
                                                                                                <img src="../images/browse.gif" class="lupita1_MIDIS" alt="VER LOS TIPOS DE DOCUMENTO" onclick="javascript:buscaItenGeneral(this,'1','0');">
                                                                                            </td>
                                                                                            <td>
                                                                                                <input type="text" style="font-size: 8pt; border-style: solid; border-color: #3E65AD;
                                                                                                    border-bottom-width: 1px; border-top-width: 1px; border-right-width: 1px; border-left-width: 1px;
                                                                                                    width: 100px; text-transform: uppercase;" id="cpt" name="cpt" autocomplete="OFF"
                                                                                                    num_records="1" datasrc="tipotramite" maxlength="550" xclass="wickEnabledAuto"
                                                                                                    ondblclick="javascript:limpiaCajaDobleClick(this,'1');" onkeypress="javascript:ValidaCaracteres();">
                                                                                            </td>
                                                                                            <td>
                                                                                                <input type="text" name="fechaSolicitud" id="fechaSolicitud" style="width: 57px;"
                                                                                                    maxlength="10" class="cajaTextoMayuscula" onkeyup="javascript:MiFechaNew(this);"
                                                                                                    value="23/03/2013" onkeypress="javascript:ValidaCaracteres();">
                                                                                            </td>
                                                                                            <td>
                                                                                                <img src="images/fecha.jpg" alt="MOSTRAR EL ALMANAQUE" class="lupita1_MIDIS" onclick="javascript:show_calendar(this);">
                                                                                            </td>
                                                                                        </tr>
                                                                                    </tbody>
                                                                                </table>
                                                                            </td>
                                                                            <td style="width: 10px;">
                                                                                &nbsp;
                                                                            </td>
                                                                            <td xstyle="width: 160px;">
                                                                                <table border="0" cellpadding="0" cellspacing="0">
                                                                                    <tbody>
                                                                                        <tr>
                                                                                            <td align="center" colspan="2">
                                                                                                Plazo
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <input type="text" style="font-size: 8pt; border-style: solid; border-color: #3E65AD;
                                                                                                    border-bottom-width: 1px; border-top-width: 1px; border-right-width: 1px; border-left-width: 1px;
                                                                                                    width: 20px; text-transform: uppercase;" id="cpt" name="cpt" autocomplete="OFF"
                                                                                                    num_records="1" datasrc="tipotramite" maxlength="550" xclass="wickEnabledAuto"
                                                                                                    ondblclick="javascript:limpiaCajaDobleClick(this,'1');" onkeypress="javascript:ValidaCaracteres();">
                                                                                            </td>
                                                                                            <td>
                                                                                                <select data-val="true" data-val-number="The field nIdePeriodo must be a number." data-val-required="El campo nIdePeriodo es obligatorio." id="nIdePeriodo" name="nIdePeriodo" class="valid">
                                                                                                    <option value="81">DIAS</option>
                                                                                                    <option value="82">HORAS</option>
                                                                                                </select>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </tbody>
                                                                                </table>
                                                                            </td>
                                                                            <td>
                                                                                <table border="0" cellpadding="0" cellspacing="0">
                                                                                    <tbody>
                                                                                        <tr>
                                                                                            <td align="center">
                                                                                                # Folios
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="center">
                                                                                                <input type="text" style="font-size: 8pt; border-style: solid; border-color: #3E65AD;
                                                                                                    border-bottom-width: 1px; border-top-width: 1px; border-right-width: 1px; border-left-width: 1px;
                                                                                                    width: 20px; text-transform: uppercase;" id="cpt" name="cpt" autocomplete="OFF"
                                                                                                    num_records="1" datasrc="tipotramite" maxlength="550" xclass="wickEnabledAuto"
                                                                                                    ondblclick="javascript:limpiaCajaDobleClick(this,'1');" onkeypress="javascript:ValidaCaracteres();">
                                                                                            </td>
                                                                                        </tr>
                                                                                    </tbody>
                                                                                </table>
                                                                            </td>
                                                                            <td>
                                                                                <table border="0" cellpadding="0" cellspacing="0">
                                                                                    <tbody>
                                                                                        <tr>
                                                                                            <td align="center">
                                                                                                Confidencial?
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td align="center">
                                                                                                <input type="checkbox" id="cpt" name="cpt">
                                                                                            </td>
                                                                                        </tr>
                                                                                    </tbody>
                                                                                </table>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr align="left">
                                                            <td nowrap="">
                                                                Referencia(s)
                                                            </td>
                                                            <td>
                                                                :
                                                            </td>
                                                            <td>
                                                                <table id="tblReferencias" cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                    <tbody>
                                                                        <tr>
                                                                            <td>
                                                                                <table cellpadding="2" cellspacing="0" border="0" width="95%">
                                                                                    <tbody>
                                                                                        <tr align="center">
                                                                                            <td>
                                                                                                Tipo Documento
                                                                                            </td>
                                                                                            <td>
                                                                                                Número Docum.
                                                                                            </td>
                                                                                            <td colspan="2">
                                                                                                Fecha Docum.
                                                                                            </td>
                                                                                            <td>
                                                                                                Comentario
                                                                                            </td>
                                                                                            <td>
                                                                                                &nbsp;
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr align="center">
                                                                                            <td align="left">
                                                                                                <table border="0" cellpadding="0" cellspacing="0">
                                                                                                    <tbody>
                                                                                                        <tr>
                                                                                                            <td>
                                                                                                                <input type="text" style="font-size: 8pt; border-style: solid; border-color: #3E65AD;
                                                                                                                    border-bottom-width: 1px; border-top-width: 1px; border-right-width: 1px; border-left-width: 1px;
                                                                                                                    width: 200px; text-transform: uppercase;" id="tipoReferencia" name="tipoReferencia"
                                                                                                                    autocomplete="OFF" num_records="1" datasrc="tipotramite" maxlength="550" xclass="wickEnabledAuto"
                                                                                                                    ondblclick="javascript:limpiaCajaDobleClick(this,'1');" onkeypress="javascript:ValidaCaracteres();">
                                                                                                            </td>
                                                                                                            <td>
                                                                                                                <img src="images/browse.gif" class="lupita1_MIDIS" alt="VER LOS TIPOS DE DOCUMENTOS"
                                                                                                                    onclick="javascript:buscaItenGeneral(this,'1','0');">
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </tbody>
                                                                                                </table>
                                                                                            </td>
                                                                                            <td>
                                                                                                <input type="text" id="numReferencia" name="numReferencia" style="font-size: 8pt;
                                                                                                    border-style: solid; border-color: #3E65AD; border-bottom-width: 1px; border-top-width: 1px;
                                                                                                    border-right-width: 1px; border-left-width: 1px; width: 100px; text-transform: uppercase;"
                                                                                                    autocomplete="OFF" num_records="1" datasrc="tipotramite" maxlength="550" xclass="wickEnabledAuto"
                                                                                                    ondblclick="javascript:limpiaCajaDobleClick(this,'1');" onkeypress="javascript:ValidaCaracteres();">
                                                                                            </td>
                                                                                            <td>
                                                                                                <input type="text" name="fecReferencia" id="fecReferencia" style="width: 57px;" maxlength="10"
                                                                                                    class="cajaTextoMayuscula" onkeyup="javascript:MiFechaNew(this);" value="23/03/2011"
                                                                                                    onkeypress="javascript:ValidaCaracteres();">
                                                                                            </td>
                                                                                            <td>
                                                                                                <img src="images/fecha.jpg" alt="MOSTRAR EL ALMANAQUE" class="lupita1_MIDIS" onclick="javascript:show_calendar(this);">
                                                                                            </td>
                                                                                            <td>
                                                                                                <input type="text" style="font-size: 8pt; border-style: solid; border-color: #3E65AD;
                                                                                                    border-bottom-width: 1px; border-top-width: 1px; border-right-width: 1px; border-left-width: 1px;
                                                                                                    width: 270px; text-transform: uppercase;" id="cpt" name="cpt" autocomplete="OFF"
                                                                                                    num_records="1" datasrc="tipotramite" maxlength="550" xclass="wickEnabledAuto"
                                                                                                    ondblclick="javascript:limpiaCajaDobleClick(this,'1');" onkeypress="javascript:ValidaCaracteres();">
                                                                                            </td>
                                                                                            <td id="tdMas">
                                                                                                <img src="images/mas.png" alt="AGREGAR REFERENCIA" class="lupita1_MIDIS" onclick="javascript:addReferencia(this,'tipoReferencia','numReferencia');">
                                                                                            </td>
                                                                                            <td id="tdBorrar" style="display: none;">
                                                                                                <img src="images/delete.png" alt="MOSTRAR EL ALMANAQUE" class="lupita1_MIDIS" onclick="javascript:show_calendar(this);">
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td colspan="6">
                                                                                                <input type="file" class="boton" style="width: 734px;" name="adjunto_tramite[]" onblur="javscript:validaCamposAdicionalesAdjunto(this);">
                                                                                            </td>
                                                                                        </tr>
                                                                                    </tbody>
                                                                                </table>
                                                                            </td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <table border="0" cellpadding="0" cellspacing="0" width="80%">
                                                    <tbody class="letraLink_MIDIS">
                                                        <tr align="left">
                                                            <td>
                                                                <b>campo obligatorio:</b>&nbsp;<span class="letraAsterisco">(*)</span>
                                                            </td>
                                                            <td align="left">
                                                                <input type="button" name="btnNuevo" class="boton" value="Registrar" onclick="javascript:registrarNuevo(this,'&lt;!--{$formulario}--&gt;');">
                                                            </td>
                                                        </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </tbody>
</table>
